const webpack = require('webpack'),
  WebpackDevServer = require('webpack-dev-server'),
  config = require('./webpack.config');

const server = new WebpackDevServer(webpack(config), {
  publicPath: config.output.publicPath,
});

server.listen(8364, 'aide.ecs002.com', function (err, result) {
  if (err) {
    console.log(err);
  }
  console.log('Listening at aide.ecs002.com:8364');
});